home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / software / videoutils / a-g / ami2d / macros / gendispx.rexx < prev    next >
OS/2 REXX Batch file  |  1978-11-24  |  589b  |  37 lines

  1. /* script to generate x displacement BC's */
  2. options results
  3.  
  4. address ami2d
  5.  
  6. if ~show('l', "rexxmathlib.library") then do
  7.     check = addlib('rexxmathlib.library',0,-30,0)
  8. end
  9.  
  10. 'info(node)'
  11. f1 = result
  12. parse var f1 nd i1a x1a y1a
  13. if i1a = 0 then exit
  14. 'info(node)'
  15. f2 = result
  16. parse var f2 nd i1b x1b y1b
  17. if i1b = 0 then exit
  18. if i1a > i1b then do
  19.     parse var f2 nd i1a x1a y1a
  20.     parse var f1 nd i1b x1b y1b
  21. end
  22.  
  23. in = i1b - i1a
  24.  
  25. 'get inodes'
  26. ni = result
  27. if in > ni then inc = ni
  28. else inc = 1
  29. 'get disp'
  30. disp = result
  31.  
  32. do i=0 to in by inc
  33.     n = i1a + i
  34.     'dispx('n','disp')'
  35. end
  36. exit
  37.